package com.base.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.base.mapper.voipmapper.SelfShopCategoryMapper;
import com.base.po.voip.SelfShopCategory;
import com.base.po.voip.SelfShopCategoryExample;
import com.base.service.SelfShopCategoryService;

@Service("SelfShopCategoryService")
public class SelfShopCategoryServiceImpl implements SelfShopCategoryService {
	@Autowired
	private SelfShopCategoryMapper selfShopCategoryMapper;

	@Override
	public int countByExample(SelfShopCategoryExample example) {
		
		return selfShopCategoryMapper.countByExample(example);
	}

	@Override
	public int deleteByExample(SelfShopCategoryExample example) {
		
		return selfShopCategoryMapper.deleteByExample(example);
	}

	@Override
	public int deleteByPrimaryKey(String id) {
		
		return selfShopCategoryMapper.deleteByPrimaryKey(id);
	}

	@Override
	public int insert(SelfShopCategory record) {
		
		return selfShopCategoryMapper.insert(record);
	}

	@Override
	public int insertSelective(SelfShopCategory record) {
		
		return selfShopCategoryMapper.insertSelective(record);
	}

	@Override
	public List<SelfShopCategory> selectByExample(SelfShopCategoryExample example) {
		
		return selfShopCategoryMapper.selectByExample(example);
	}

	@Override
	public SelfShopCategory selectByPrimaryKey(String id) {
		
		return selfShopCategoryMapper.selectByPrimaryKey(id);
	}

	@Override
	public int updateByExampleSelective(SelfShopCategory record, SelfShopCategoryExample example) {
		
		return selfShopCategoryMapper.updateByExampleSelective(record, example);
	}

	@Override
	public int updateByExample(SelfShopCategory record, SelfShopCategoryExample example) {
		
		return selfShopCategoryMapper.updateByExample(record, example);
	}

	@Override
	public int updateByPrimaryKeySelective(SelfShopCategory record) {
		
		return selfShopCategoryMapper.updateByPrimaryKeySelective(record);
	}

	@Override
	public int updateByPrimaryKey(SelfShopCategory record) {
		
		return selfShopCategoryMapper.updateByPrimaryKey(record);
	}

	@Override
	public List<SelfShopCategory> selectByParentIDAndShopID(String parentid, String shopid) {
		
		return selfShopCategoryMapper.selectByParentIDAndShopID(parentid, shopid);
	}

	@Override
	public List<SelfShopCategory> selectByLevel1(String parentid, String shopid) {
		
		return selfShopCategoryMapper.selectByLevel1(parentid, shopid);
	}

	@Override
	public List<SelfShopCategory> selectByTopid(String topid) {
		
		return selfShopCategoryMapper.selectByTopid(topid);
	}
	
}
